/**
 * 
 */
package oldtrigger;

/**
 * @author Philip
 *
 */
public class IgnoreCaseFlag extends TriggerFlagger {

	public IgnoreCaseFlag(Trigger trigger) {
		super(trigger);
	}

	@Override
	public boolean triggers(String text) {
		trigger.triggers(text);
//		System.out.println(trigger.getTrigger().toUpperCase());
		return trigger.triggers(text) && text.toUpperCase().contains(trigger.getTrigger().toUpperCase());
	}
	
	public String toString() {
		return "IC " + trigger.toString();
	}
}
